<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript">
	$(function() {
		
		$('#employInfoEditForm').form({
			url : '${ctx}/employInfo/edit',
			onSubmit : function() {
				progressLoad();
				var isValid = $(this).form('validate');
				if (!isValid) {
					progressClose();
				}
				return isValid;
			},
			success : function(result) {
				progressClose();
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
					parent.$.modalDialog.handler.dialog('close');
				} else {
					parent.$.messager.alert('错误', result.msg, 'error');
				}
			}
		});
		
		
		
	});
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 3px;">
		<form id="employInfoEditForm" method="post">
			<table class="grid">
           <input name="id" type="hidden"  value="${employInfo.id}">
				<tr>
					<td>用户名</td>
					<td><input name="employName" type="text" placeholder="请输入用户名" class="easyui-validatebox"  value="${employInfo.employName}"></td>
				</tr>
				<tr>
					<td>手机</td>
					<td><input name="employMobiel" type="text" placeholder="请输入手机" class="easyui-validatebox"  value="${employInfo.employMobiel}"></td>
				</tr>
				<tr>
					<td>邮箱</td>
					<td><input name="employEmail" type="text" placeholder="请输入邮箱" class="easyui-validatebox"  value="${employInfo.employEmail}"></td>
				</tr>
				<tr>
					<td>QQ</td>
					<td><input name="employQQ" type="text" placeholder="请输入QQ" class="easyui-validatebox"  value="${employInfo.employQQ}"></td>
				</tr>
				<tr>
					<td>地址</td>
					<td><input name="employAddress" type="text" placeholder="请输入地址" class="easyui-validatebox"  value="${employInfo.employAddress}"></td>
				</tr>
				<tr>
					<td>身份证</td>
					<td><input name="employIdCard" type="text" placeholder="请输入身份证" class="easyui-validatebox"  value="${employInfo.employIdCard}"></td>
				</tr>
				<tr>
					<td>生日</td>
					<td><input name="employBirthday" type="text" placeholder="请输入生日" class="easyui-validatebox"  value="${employInfo.employBirthday}"></td>
				</tr>
				<tr>
					<td>备注</td>
					<td><input name="employNote" type="text" placeholder="请输入备注" class="easyui-validatebox"  value="${employInfo.employNote}"></td>
				</tr>
			</table>
		</form>
	</div>
</div>
